package com.fz.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fz.entity.Repair;
import com.baomidou.mybatisplus.extension.service.IService;

import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 存储用户报修信息 服务类
 * </p>
 *
 * @author hyr
 * @since 2025-06-18
 */
public interface RepairService extends IService<Repair> {
    boolean check(Long id,String field,String value);
    boolean pass(Long id,Integer status,Integer statu);
    boolean reject(Long id,Integer status,Integer statu);
    boolean del(Long id,Integer status);
    String getByRepairId(Long RepairId,Long userId);

    boolean update(Long id, String username);

    //赋值给用户名
    List<Repair> updateview(List<Repair> repairList);

    Page<Repair> getList(Long userId, Integer pageNo, Integer pageSize);
    Page<Repair> showList(Integer pageNo, Integer pageSize);
    Page<Repair> search(String input, Integer pageNo, Integer pageSize);

    Boolean update(Long id, String type, String content, LocalDateTime repairTime);

    Boolean add(Integer userId, String type, String content, LocalDateTime repairTime,Integer status,String username);
}
